home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _CursorManagerStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.2 KB  |  38 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.BusyCursor;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _CursorManagerStyle
  9.    {
  10.       private static var _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_866905343:Class = _CursorManagerStyle__embed_css_Assets_swf_mx_skins_cursor_BusyCursor_866905343;
  11.       
  12.       public function _CursorManagerStyle()
  13.       {
  14.          super();
  15.       }
  16.       
  17.       public static function init(param1:IFlexModuleFactory) : void
  18.       {
  19.          var fbs:IFlexModuleFactory = param1;
  20.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("CursorManager");
  21.          if(!style)
  22.          {
  23.             style = new CSSStyleDeclaration();
  24.             StyleManager.setStyleDeclaration("CursorManager",style,false);
  25.          }
  26.          if(style.defaultFactory == null)
  27.          {
  28.             style.defaultFactory = function():void
  29.             {
  30.                this.busyCursor = BusyCursor;
  31.                this.busyCursorBackground = _embed_css_Assets_swf_mx_skins_cursor_BusyCursor_866905343;
  32.             };
  33.          }
  34.       }
  35.    }
  36. }
  37.  
  38.